
<form class="layui-form pt10" action="{:url()}" method="post" id="editForm">
    <div class="layui-form-item">
        <label class="layui-form-label">产品名称</label>
        <div class="layui-input-inline">
            <select name="product_id" class="field-product_id" type="select" lay-verify="required" lay-search="">
                <option value="">请选择产品</option>
                {$Product|raw}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">数量</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-category_number" name="category_number" lay-verify="required" autocomplete="off" placeholder="请输入数量">
        </div>
    </div>
    <!-- 由于项目操作单中   库管配料部分功能   筛选配料库   所以此处删掉  默认全部分解使用 -->
    <!-- <div class="layui-form-item">
        <label class="layui-form-label">是否分解</label>
        <div class="layui-input-inline">
            <input type="radio" class="field-is_volume" name="is_volume" value="1" title="分解" checked>
            <input type="radio" class="field-is_volume" name="is_volume" value="2" title="不分解">
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div> -->

    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" class="field-id" name="id">
            <input type="hidden" class="field-is_volume" name="is_volume" value="1">
            <input type="hidden" class="field-project_id" name="project_id" value="{$pid|default=''}">
        </div>
    </div>
    <div class="pop-bottom-bar hisi-footer">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>
{include file="system@block/layui" /}
<script>
layui.use(['func','laydate'], function() {
    //常规用法
    var laydate = layui.laydate;
    laydate.render({
          elem: '#date',
          trigger:'click'
        });

    layui.func.assign({:json_encode($formData)});


});
</script>
